<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmChequesPropios.aspx.vb" Inherits="TGB.FrmChequesPropios" 
    title="Administracion de Cheques Propios" %>

<%--<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
--%><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="DIV1" style="width: 100%; height: 22px; text-align: left; background-color: #ccccff;" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Cheques Propios" Font-Underline="False" Height="8px" Width="136px" Font-Names="Calibri" Font-Overline="False"></asp:Label>
        </div><hr /> 
    <div style="width: 100%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 696px; height: 80px; text-align: center;" >
        <tr>
            <td align="right" style="width: 13%; height: 14px;">
                <asp:Label ID="Label1" runat="server" CssClass="CampoLbl" Text="Banco:"></asp:Label></td>
            <td style="width: 25%; height: 14px;" align="left" ><asp:DropDownList ID="CboBanco" runat="server" CssClass="CampoCbo" Width="256px" AutoPostBack="True" AppendDataBoundItems="True">
                <asp:ListItem Value="-1">Seleccione Un Banco</asp:ListItem>
            </asp:DropDownList></td>
            <td align="right" style="width: 31%; height: 14px;">
                </td>
            <td style="height: 14px; width: 104%; vertical-align: middle;" align="center" >
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 18px;">
                </td>
            <td style="width: 25%; height: 18px;" align="left" ></td>
            <td align="right" style="width: 31%; height: 18px;">
                </td>
            <td style="width: 104%; height: 18px;" align="left" ></td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 19px">
                <asp:Label ID="Label2" runat="server" CssClass="CampoLbl" Text="Cuenta"></asp:Label></td>
            <td align="left" style="width: 25%; height: 19px">
                <asp:DropDownList ID="CboCuenta" runat="server" CssClass="CampoCbo" Width="256px" AutoPostBack="True" AppendDataBoundItems="True">
                <asp:ListItem Value="-1">Seleccione Una Cuenta</asp:ListItem>
            </asp:DropDownList></td>
            <td align="right" style="width: 31%; height: 19px">
                <asp:Label ID="Label3" runat="server" CssClass="CampoLbl" Text="Chequera"></asp:Label></td>
            <td align="left" style="width: 104%; height: 19px">
                <asp:DropDownList ID="CboChequera" runat="server" CssClass="CampoCbo" Width="256px" AppendDataBoundItems="True" AutoPostBack="True">
                <asp:ListItem Value="-1">Seleccione Una Chequera</asp:ListItem>
            </asp:DropDownList></td>
        </tr>
        <tr>
            <td align="right" style="width: 26%; height: 20px;" colspan="4">
                </td>
        </tr>
        <tr>
            <td align="center" colspan="4" style="width: 26%; height: 20px">
                <asp:Label ID="Label6" runat="server" Height="16px" Style="font-weight: bold; font-size: 14px;
                    vertical-align: middle; font-family: Calibri; background-color: #ff3333; text-align: center"
                    Text="Informacion del Cheque" Width="736px"></asp:Label></td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 19px">
                <asp:Label ID="Label4" runat="server" CssClass="CampoLbl" Text="Numero Cheque" Width="120px"></asp:Label></td>
            <td align="left" style="width: 25%; height: 19px">
                <asp:TextBox ID="TxtNumeroCheque" runat="server" CssClass="campotxt" Width="248px" ReadOnly="True"></asp:TextBox></td>
            <td align="right" style="width: 31%; height: 19px">
                <asp:Label ID="Label9" runat="server" CssClass="CampoLbl" Text="Observaciones" Width="168px"></asp:Label></td>
            <td align="left" rowspan="4" style="width: 104%">
                <asp:TextBox ID="TxtObservaciones" runat="server" CssClass="campotxt" Height="80px"
                    MaxLength="200" TextMode="MultiLine" Width="248px"></asp:TextBox></td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 19px">
                <asp:Label ID="Label5" runat="server" CssClass="CampoLbl" Text="Fecha de Vencimiento"
                    Width="144px"></asp:Label></td>
            <td align="left" style="width: 25%; height: 19px">
                <asp:TextBox ID="TxtFechaVencimiento" runat="server" CssClass="campotxt" MaxLength="11"
                    TabIndex="7" Width="120px"></asp:TextBox>&nbsp;&nbsp;
            </td>
            <td align="left" style="width: 31%; height: 19px">
            <asp:RangeValidator ID="RVFechaNacimiento"
                        runat="server" ControlToValidate="TxtFechaVencimiento" ErrorMessage="Error en Fecha : DD/MM/AAAA"
                        MaximumValue="01/01/2050" MinimumValue="01/01/1900" Type="Date" Width="168px"></asp:RangeValidator></td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 20px">
                <asp:Label ID="LblFechaEmision" runat="server" CssClass="CampoLbl" Text="Fecha de Emision"
                    Width="144px"></asp:Label></td>
            <td align="left" style="width: 25%; height: 20px">
                <asp:Label ID="LblFechaEmisionNombre" runat="server" CssClass="CampoLbl" Text="Fecha de Emision"
                    Width="144px"></asp:Label></td>
            <td align="left" style="width: 31%; height: 20px">
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 13%; height: 20px">
                <asp:Label ID="Label7" runat="server" CssClass="CampoLbl" Text="Importe" Width="16px"></asp:Label></td>
            <td align="left" style="width: 25%; height: 20px">
                <asp:TextBox ID="TxtImporte" runat="server" CssClass="campotxt" MaxLength="11" TabIndex="7"
                    Width="120px"></asp:TextBox>
                </td>
            <td align="left" style="width: 31%; height: 20px">
                <asp:RangeValidator ID="RVImporte" runat="server" ControlToValidate="TxtImporte"
                    ErrorMessage="Error en Importe" MaximumValue="100000" MinimumValue="100" SetFocusOnError="True"
                    Type="Currency" Width="96px"></asp:RangeValidator></td>
        </tr>
                </table>
        <br />
        <table style="width: 824px; height: 56px; text-align: center" class="tabla">
        <tr>
            <td align="right" style="width: 4%; height: 14px">
                <asp:Label ID="Lbl8" runat="server" CssClass="CampoLbl" Text="Cheque A Nombre de:"
                    Width="144px"></asp:Label></td>
            <td align="left" style="width: 25%; height: 14px">
            </td>
        </tr>
        <tr>
            <td align="right" rowspan="2" style="vertical-align: middle; width: 4%; text-align: left">
                <asp:RadioButtonList ID="OpcChequeNombre" runat="server" AutoPostBack="True" Height="32px"
                    Style="text-align: left" Width="160px">
                    <asp:ListItem Value="1">Proveedor</asp:ListItem>
                    <asp:ListItem Value="2">Otro</asp:ListItem>
                </asp:RadioButtonList></td>
            <td align="left" style="width: 25%; height: 3px"><asp:DropDownList ID="CboProveedor" runat="server" CssClass="CampoCbo" Width="200px" AutoPostBack="True" AppendDataBoundItems="True">
                <asp:ListItem Value="-1">Seleccione un Proveedor</asp:ListItem>
            </asp:DropDownList>
                    <asp:TextBox ID="TxtChequeNombre" runat="server" CssClass="campotxt" MaxLength="200"
                        TabIndex="7" Width="640px" Height="16px"></asp:TextBox></td>
        </tr>
            <tr>
                <td align="left" style="width: 25%; height: 14px">
                    </td>
            </tr>
        </table>
        <br />
        <table>
        <tr>
            <td align="right" colspan="4" style="height: 21px; vertical-align: middle; background-color: transparent; text-align: center; width: 556px;" >
<asp:LinkButton ID="LnkGuardar" runat="server" CssClass="BotonLink" TabIndex="10">Guardar</asp:LinkButton>
            <asp:LinkButton ID="LnkEliminar" runat="server" CssClass="BotonLink" TabIndex="99">Eliminar</asp:LinkButton>
            <asp:LinkButton ID="LnkBuscar" runat="server" CssClass="BotonLink" TabIndex="13">Buscar</asp:LinkButton>
            <asp:LinkButton ID="LnkCancelar" runat="server" CssClass="BotonLink" TabIndex="14">Cancelar</asp:LinkButton>&nbsp;
            </td>
        </tr>
        
    </table>
        <asp:Label ID="LblError" runat="server" Font-Bold="True" ForeColor="#C00000" CssClass="LabelError"></asp:Label><br />
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef; vertical-align: middle; text-align: center;">
        &nbsp;<asp:GridView ID="GridCheques" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" CellSpacing="1"
            ForeColor="Black" GridLines="Horizontal" Width="776px" AllowPaging="True" AllowSorting="True" style="font-size: 12px; font-family: Calibri">
            <RowStyle HorizontalAlign="Center" />
            <Columns>
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("CodigoCheque") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LnkVer" runat="server" CommandName="Select">Ver</asp:LinkButton><asp:HiddenField
                            ID="HFChequePropio" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Numero de Cheque">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("IdCheque") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        &nbsp;
                        <asp:Label ID="LblNumeroCheque" runat="server" Text='<%# Bind("IdCheque") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Importe">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Importe") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblImporte" runat="server" Text='<%# Bind("Importe") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Fecha de Vencimiento">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("FechaVence") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblFVencimiento" runat="server" Text='<%# Bind("FechaVence") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="FechaEmision">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("FechaEmision") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblFEmision" runat="server" Text='<%# Bind("FechaEmision") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Observacion">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Observacion") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblObservacion" runat="server" Text='<%# Bind("Observacion") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Emitido A">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("ANombreDe") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblANombreDe" runat="server" Text='<%# Bind("ANombreDe") %>'></asp:Label>&nbsp;
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("CodigoProveedor") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <br />
                        <asp:HiddenField ID="HFCodigoEmpresa" runat="server" Value='<%# Bind("CodigoProveedor") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
        </asp:GridView>
    </div>
</asp:Content>
